<template>
  <div>
    <div style="margin-bottom: 20px">
      <span style="font-size: 22px;">图书管理</span>
      <el-divider />
      <el-row style="margin-top:30px ">
        <el-button type="primary" @click="addBook">添加图书</el-button>
        <el-button type="primary" @click="searchBook">高级搜索</el-button>
      </el-row>
    </div>
    <router-view />
  </div>
</template>

<script>
export default {
  methods: {
    addBook() {
      this.$router.push('/bookAdd')
    },
    searchBook() {
      this.$router.push('/bookSearch')
    }
  }
}
</script>
<style scoped>

</style>
